<div class="deal">
<div class="deal_content_top"></div>
<div class="deal_content">
	<h3>Danh sách các email đăng ký</h3>
	<table class="table-style" style="width: 100%;" cellpadding="5px"
		cellspacing="0">
		<tbody>
			<tr class="table-title">
				<td><a href="<?php echo $this->baseUrl("index.php/admin_cms/newsletter") ?>?by=a.email&order=<?php echo ($this->by != "a.email" || $this->order == "desc") ? "asc" : "desc"; ?>">Email</a></td>
				<td><a href="<?php echo $this->baseUrl("index.php/admin_cms/newsletter") ?>?by=b.name&order=<?php echo ($this->by != "b.name" || $this->order == "desc") ? "asc" : "desc"; ?>">Danh mục đăng ký</a></td>
				<td>&nbsp;</td>
			</tr>
			<?php $i = 0;?>
			<?php foreach($this->listEmail as $email): ?>
			<?php $i++ ?>
			<tr class="<?php echo $i % 2 == 0 ? 'even' : 'odd' ?>">
				<td><?php echo $email->email ?></td>
				<td><?php echo $email->name ?></td>
				<td align="right">
					<a 
					href="<?php echo $this->baseUrl('index.php/admin_cms/newsletter/delete/id/' . $email->newsletter_id) ?>"
					onclick="if(!confirm('Delete ?',''))return false;"> 
						<img alt="Delete" src="<?php echo $this->baseUrl('public/images/delete.png') ?>">
					</a>
				</td>
			</tr>
			<?php endforeach ?>
		</tbody>
	</table>
</div>

<div class="deal_content_bottom"></div>
</div>
